package com.xdap.pg.exam.entity;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;

import java.util.Objects;

@Table("area")
@Style(Upper2Underline = true)
public class Area extends AbstractBasePojo implements java.io.Serializable {

    private static final long serialVersionUID = -941826946164753709L;

    @Column("Area_Name")
    private String areaName;

    public Area() {
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Area area = (Area) o;
        return Objects.equals(areaName, area.areaName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(areaName);
    }

    @Override
    public String toString() {
        return "Area{" +
                "areaName='" + areaName + '\'' +
                '}';
    }
}
